// 生成HTML文件
const fs = require('fs')

module.exports = {
  process: function (keys) {
    var res = fs.readFile('./forePage.txt', function (error, datas) {
      console.log(datas)
    })
    for (var i = 0; i < keys.length; i++) {
      res +=
        '<div class="image"><div class="image-view"><img src="' +
        keys[i] +
        '" /></div><p class="image-title">towaymerge_extend_1</p><span class="copy-btn">copy link</span></div>'
    }
    res += fs.readFile('./afterPage.txt', function (error, datas) {
      console.log(datas)
    })
    console.log(res)
  },
}
